eeprom: Suck the ifdef into eeprom_init()
authorMarek Vasut <[email protected]>
Tue, 10 Nov 2015 19:53:27 +0000 (20:53 +0100)
committerTom Rini <[email protected]>
Sun, 22 Nov 2015 02:50:24 +0000 (21:50 -0500)
commit8eee40a602deacb2ec0ebd1deed3e732bd470bbc
treec69de11bc8f59a8888b74d0e4200e89dfddad926
parentd738746cc357e2157fce69f1fd5b25692ac640d1
eeprom: Suck the ifdef into eeprom_init()

Just suck the ugly ifdef around eeprom_init() call into eeprom_init()
function itself. This puts all of the ifdef mess into one place.

Signed-off-by: Marek Vasut <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: Heiko Schocher <[email protected]>
Reviewed-by: Heiko Schocher <[email protected]>
common/cmd_eeprom.c